﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CFSystem.JXC.IDAL
{
    using CFSystem.JXC.Model;

    public interface IStockDAL
    {
        /// <summary>
        /// 获取所有的进货记录
        /// </summary>		
        /// <returns>进货记录信息的集合</returns>
        IList<StockInfo> GetAllStockRecords();

        /// <summary>
        /// 根据进货批次/商品编号/商品类别/供应商查询进货记录
        /// </summary>
        /// <param name="strSearch">Search string</param>
        /// <returns>返回满足条件的进货记录集合</returns>
        IList<StockInfo> SearchStockRecords(string strSearch);

        /// <summary>
        /// 添加一条进货记录
        /// </summary>
        /// <param name="product">要添加的进货记录信息对象</param>
        void AddStockRecord(StockInfo stock);

        /// <summary>
        /// 删除一条进货记录
        /// </summary>
        /// <param name="recordID">进货记录行编号</param>
        void DeleteStockRecord(int recordID);

        /// <summary>
        /// 更新一条进货记录的信息
        /// </summary>
        /// <param name="product">要更新的进货记录信息对象</param>
        void UpdateStockRecord(StockInfo stock);

        /// <summary>
        /// 得到最大批次的编号
        /// </summary>
        /// <returns>最大批次编号</returns>
        string GetStockMaxBatchID();
    }
}
